﻿using System.Text;

namespace Sample.Models
{
    internal partial class Task 
    {
        public override string ToString()
        {
            var result = new StringBuilder("Task(").AppendLine();
            result.AppendFormat("\tId:{0},", Id).AppendLine();
            result.AppendFormat("\tTitle:{0},", Title).AppendLine();
            result.AppendFormat("\tHoursEffort:{0},", HoursEffort).AppendLine();
            result.AppendFormat("\tIsComplete:{0},", IsComplete).AppendLine();
            result.AppendFormat("\tLastModified:{0},", LastModified).AppendLine();
            result.Append(")").AppendLine();
            return result.ToString();
        }
    }
}
